home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / rpg / crossfir.92 / crossfir / crossfire-0.92.5 / include / sunos.h < prev    next >
C/C++ Source or Header  |  1996-07-24  |  3KB  |  105 lines

  1. /*
  2.  * static char *rcsid_sunos_h =
  3.  *   "$Id: sunos.h,v 1.18 1996/07/24 07:18:21 master Exp master $";
  4.  */
  5.  
  6. /*
  7.     CrossFire, A Multiplayer game for X-windows
  8.  
  9.     Copyright (C) 1992 Frank Tore Johansen
  10.  
  11.     This program is free software; you can redistribute it and/or modify
  12.     it under the terms of the GNU General Public License as published by
  13.     the Free Software Foundation; either version 2 of the License, or
  14.     (at your option) any later version.
  15.  
  16.     This program is distributed in the hope that it will be useful,
  17.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.     GNU General Public License for more details.
  20.  
  21.     You should have received a copy of the GNU General Public License
  22.     along with this program; if not, write to the Free Software
  23.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24.  
  25.     The author can be reached via e-mail to frankj@ifi.uio.no.
  26. */
  27.  
  28. /* This file is really a waste, but sunos lacks prototypes... */
  29.  
  30.  
  31. #ifndef SVR4
  32. /* The gcc header file unistd.h now defines some of these.  So comment them
  33.  * out and include the proper header file.
  34.  */
  35.  
  36. #include <sys/types.h>
  37. #include <unistd.h>
  38. #include <strings.h>
  39. #ifdef SERVER
  40. #include <sys/socket.h>               /* struct sockaddr */
  41. #endif
  42. #include <sys/timeb.h>                /* struct timeb */
  43. #include <stdarg.h>           /* va_list */
  44. #include <memory.h>
  45.  
  46. #ifdef SERVER
  47. int accept(int, struct sockaddr *, int *);
  48. int bind(int, struct sockaddr *, int);
  49. int connect(int, struct sockaddr *, int);
  50. int listen(int, int);
  51. int setsockopt(int, int, int, char *, int);
  52. int socket(int, int, int);
  53. #endif
  54.  
  55. extern int malloc_debug(int);
  56. int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
  57. char _filbuf();
  58. char *crypt(char *, char *);
  59. char *strdup_local(char *);
  60. int _flsbuf(char *, int);
  61. int cfree(char *);
  62. int fclose(FILE *);
  63. int fgetc(FILE *);
  64. int printf(char *, ...);
  65. int fprintf(FILE *, char *, ...);
  66. int vprintf(char *, va_list);
  67. int vsprintf(char *, char *, va_list);
  68. int vfprintf(FILE *, char *, va_list);
  69. int fputs(char *, FILE *);
  70. int fread(char *, int, int, FILE *);
  71. int fwrite(char *, int, int, FILE *);
  72. int scanf(char *, ...);
  73. int fscanf(FILE *, char *, ...);
  74. int sscanf(char *, char *, ...);
  75. int ftime(struct timeb *);
  76. int getdtablesize(void);
  77. int gethostname(char *, int);
  78. int gettimeofday(struct timeval *, struct timezone *);
  79. int ioctl(int, int, ...);
  80. int pclose(FILE *);
  81. int puts(char *);
  82. int rename(char *, char *);
  83. int setpgrp(int, int);
  84. int srandom(int);
  85. int strcasecmp(char *, char *);
  86. int strftime(char *, int, char *, struct tm *);
  87. int strncasecmp(char *, char *, int);
  88. int system(char *);
  89. int ungetc(int, FILE *);
  90. long random(void);
  91. long strtol(char *, char **, int);
  92. time_t time(time_t *);
  93. void bcopy(char *, char *, int);
  94. void bzero(char *, int);
  95. void fflush(FILE *);
  96. void fseek (FILE *, long, int);
  97. void perror(char *);
  98. void rewind(FILE *);
  99. #else /* Following are for solaris 2.x machines (tested on 2.5 at least) */
  100. long lrand48(void);
  101. void srand48(long seedval);
  102. int strcasecmp(const char *s1, const char *s2);
  103. int strncasecmp(const char *s1, const char *s2, int n);
  104. #endif
  105.